#pragma once

#include <string>
using namespace std;
class CFtpTransfer_Curl
{
public:
	CFtpTransfer_Curl(void);
	virtual~CFtpTransfer_Curl(void);

	CString m_ftpPath;
	CString m_localPath;
	BOOL Login(const int &loginStyle = 0);
	void Logout();

	BOOL CreateRemoteDir(CString DirName );
	BOOL DeleteRemoteDir(CString DirName );

	BOOL Upload(CString localFilePath,CString localFileName);
	BOOL UploadUserFile(CString localFilePath,CString ftpFileName,CString subDir);
	BOOL Download(CString remoteFile, CString localFile);

	BOOL DeleteRemoteFile( CString fileName );

	BOOL UploadAll();
	CString GetLastError();

	CString GetFtpPath();
	CString GetFilePath(const int fileStyle = 0);
private:
	int m_ftpPort;
	int m_loginStyle;
	bool SetFtpPath();
	CString m_serverHost;
	CString m_serverName;
	CString m_serverPass;
	CString m_serverFtpDir;
};
